﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using AutoMapper;
using Xierun.Dtos;
using Xierun.Models;

namespace Xierun.WebApp.Extensions
{
    public class MappingProfile:Profile
    {
        public MappingProfile()
        {
            #region Base_User

            CreateMap<Base_User, Base_UserDto>()
                .ForMember(dest => dest.UserName, opt => opt.MapFrom(src => src.ModifyUserName));
            CreateMap<Base_UserDto, Base_User>();

            #endregion

        }

    }
}
